package decorator;

/**
 * @ClassName Decotator
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/8/5 11:29
 * @Version 1.0
 */
public abstract class Decorator implements TextNode {
	protected final TextNode target;

	public Decorator(TextNode textNode) {
		this.target = textNode;
	}
	@Override
	public void setText(String text) {
		this.target.setText(text);
	}
}
